MkSpeechBubble
Node for showing a css-based speech bubble.¶
Bases: MkContainer
Name | Children | Inherits |
---|---|---|
MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
94721306003376["mkspeechbubble.MkSpeechBubble"]
94721311697232["mkcontainer.MkContainer"]
94721308848336["mknode.MkNode"]
94721311766592["node.Node"]
140564252373184["builtins.object"]
94721311697232 --> 94721306003376
94721308848336 --> 94721311697232
94721311766592 --> 94721308848336
140564252373184 --> 94721311766592
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkspeechbubble/metadata.toml
[metadata]
icon = "mdi:chat"
name = "MkSpeechBubble"
[[resources.css]]
filename = "speechbubble.css"
[examples.regular]
title = "Regular"
jinja = """
{{ "some text" | MkSpeechBubble }}
"""
[examples.no_arrow]
title = "No arrow"
jinja = """
{{ "some text" | MkSpeechBubble(arrow=None) }}
"""
[output.markdown]
template = """
<div class="speech{{ node.arrow | add(prefix=' ') }}" markdown="1">
{{node.items | join(node.block_separator) }}
</div>
"""